import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _inherits from "@babel/runtime/helpers/esm/inherits";
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
var _excluded = ["children", "className"];

/**
 * Content.js
 * @date 2018/11/23
 */
import React from 'react';
import styles from "../index.less?modules";

var Content = /*#__PURE__*/function (_React$Component) {
  _inherits(Content, _React$Component);

  var _super = _createSuper(Content);

  function Content() {
    _classCallCheck(this, Content);

    return _super.apply(this, arguments);
  }

  _createClass(Content, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          children = _this$props.children,
          className = _this$props.className,
          other = _objectWithoutProperties(_this$props, _excluded);

      var contentClassName = styles.content;

      if (className) {
        contentClassName += " ".concat(className);
      }

      return /*#__PURE__*/React.createElement("div", Object.assign({
        className: contentClassName
      }, other), children);
    }
  }]);

  return Content;
}(React.Component);

export { Content as default };